package com.aerotechnic.util;


import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.aerotechnic.bo.BOLayer;
import com.aerotechnic.models.User;


public class LoadBeans {
	private static ApplicationContext appContext = new ClassPathXmlApplicationContext(
			"spring/config/BeanLocations.xml");
	// M pour mail
//	private static ApplicationContext appContextMail = new ClassPathXmlApplicationContext(
//			"Spring-Mail.xml");
	
	private static BOLayer<User> userBO = (BOLayer<User>) appContext
			.getBean("UserBo");


	public static BOLayer<User> getUserBO() {
		return userBO;
	}


}
